<template>
  <div class="card-container">
    <div class="top">
      <h4>{{ title }}</h4>
    </div>
    <div class="main"><slot /></div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Card",
});
</script>
<script lang="ts" setup>
const props = defineProps(["title"]);
</script>

<style lang="scss" scoped>
.card-container {
  width: 100%;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  height: 100%;
  background-color: rgba(#112a91, 0.2);

  .top {
    width: 100%;
    top: 0;
    background-color: rgba(#183fa2, 0.2);
    position: absolute;
    padding-left: 20px;
    height: 40px;
    & h4 {
      background: linear-gradient(to right, #3daef9, #2f7bff);
      background-color: rgba(#11238b, 0.2);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      font-size: 24px;
      line-height: 40px;
    }
  }
  .main {
    background-color: rgba(#112e93, 0.1);
    margin-top: 40px;
    width: 100%;
    height:calc(100% - 40px);
  }

}
</style>
